package com.fanco.learn_datastruct_leetcode.designpattern.bridge;

import java.sql.Driver;

/**
 * @author qiaowang 2022/2/11
 * 描述
 */
public class Client {
    public static void main(String[] args) {
        // 获取折叠式手机（样式+品牌）
        Phone phone = new FoldedPhone(new Xiaomi());

        phone.open();
        phone.close();
        phone.call();

        Phone phone2 = new FoldedPhone(new Vivo());

        phone2.open();
        phone2.close();
        phone2.call();
    }
}
